<?php
namespace Demo\Controller;
use Common\Controller\HomebaseController;

class IndexController extends HomebaseController{
	
	function index(){
		$msginfo = D("Common/Guestbook");
		//dump($msginfo);
		$msglist = $msginfo -> where(array("status"=>2))->select();
		$this -> assign("msglist",$msglist);
		$this -> display();
	}
}